package com.cskaoyan.mall.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * @Author: dyj
 * @Date: 2021/1/9 17:39
 * @Description  通用items输出类
 */
@Data
public class GeneralItemsBean<T>{
    int total;

    List<T> items;

    public static <T> GeneralItemsBean data(List<T> items, int total){
        GeneralItemsBean itemsBean = new GeneralItemsBean();
        itemsBean.setItems(items);
        itemsBean.setTotal(total);
        return itemsBean;
    }

}
